package com.guigu.pd.serviceapi.basefeign;

import com.guigu.pd.serviceapi.pojo.TransportLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "pd-base",path = "base/transportline")
public interface TransportLineFeign {

    //根据起点网点id去 base库 路线表去查询所有起点为起点网点id 查询数据 （包括直达 或者要中转）
    @GetMapping("/getTransportLinelistbystartAgencyId/{startAgencyId}/{getpidbyendid}")
    TransportLine getTransportLinelistbystartAgencyId(@PathVariable("startAgencyId") String startAgencyId,@PathVariable("getpidbyendid") String getpidbyendid);
}
